package com.hjy.cabinet.db.domain;

import android.os.Parcel;
import android.os.Parcelable;

public class UserSyncVo implements Parcelable {
    private Integer id;
    private String fullName;
    private String userName;
    private String password;
    private String roleId;
    private String sex;
    private String tel;
    private Integer orgId;
    private Boolean status;
    private String avatar;
    private Integer updateBy;
    private String updateUserName;
    private Long updateTime;
    private String orgName;
    private String ids;
    private String oldPassword;
    private String newPassword;
    private String idCard;
    private Boolean deleteStatus;

    // 默认构造函数
    public UserSyncVo() {}

    // 从 Parcel 中读取数据
    protected UserSyncVo(Parcel in) {
        id = (Integer) in.readValue(Integer.class.getClassLoader());
        fullName = in.readString();
        userName = in.readString();
        password = in.readString();
        roleId = in.readString();
        sex = in.readString();
        tel = in.readString();
        orgId = (Integer) in.readValue(Integer.class.getClassLoader());
        status = (Boolean) in.readValue(Boolean.class.getClassLoader());
        avatar = in.readString();
        updateBy = (Integer) in.readValue(Integer.class.getClassLoader());
        updateUserName = in.readString();
        updateTime = (Long) in.readValue(Long.class.getClassLoader());
        orgName = in.readString();
        ids = in.readString();
        oldPassword = in.readString();
        newPassword = in.readString();
        idCard = in.readString();
        deleteStatus = (Boolean) in.readValue(Boolean.class.getClassLoader());
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeValue(id);
        dest.writeString(fullName);
        dest.writeString(userName);
        dest.writeString(password);
        dest.writeString(roleId);
        dest.writeString(sex);
        dest.writeString(tel);
        dest.writeValue(orgId);
        dest.writeValue(status);
        dest.writeString(avatar);
        dest.writeValue(updateBy);
        dest.writeString(updateUserName);
        dest.writeValue(updateTime);
        dest.writeString(orgName);
        dest.writeString(ids);
        dest.writeString(oldPassword);
        dest.writeString(newPassword);
        dest.writeString(idCard);
        dest.writeValue(deleteStatus);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<UserSyncVo> CREATOR = new Creator<UserSyncVo>() {
        @Override
        public UserSyncVo createFromParcel(Parcel in) {
            return new UserSyncVo(in);
        }

        @Override
        public UserSyncVo[] newArray(int size) {
            return new UserSyncVo[size];
        }
    };

    // Getter 和 Setter 方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Integer getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Integer updateBy) {
        this.updateBy = updateBy;
    }

    public String getUpdateUserName() {
        return updateUserName;
    }

    public void setUpdateUserName(String updateUserName) {
        this.updateUserName = updateUserName;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getIds() {
        return ids;
    }

    public void setIds(String ids) {
        this.ids = ids;
    }

    public String getOldPassword() {
        return oldPassword;
    }

    public void setOldPassword(String oldPassword) {
        this.oldPassword = oldPassword;
    }

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public Boolean getDeleteStatus() {
        return deleteStatus;
    }

    public void setDeleteStatus(Boolean deleteStatus) {
        this.deleteStatus = deleteStatus;
    }
}